package leetcode.code1143;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution1143 implements IDebug {

	public abstract int longestCommonSubsequence(String text1, String text2);

	@Override
	public void debug1() {
		String text1 = "abcde";
		String text2 = "ace";
		int e = 3;
		debug(text1, text2, e);
	}

	private void debug(String text1, String text2, int e) {
		int r = this.longestCommonSubsequence(text1, text2);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String text1 = "abc";
		String text2 = "abc";
		int e = 3;
		debug(text1, text2, e);
	}

	@Override
	public void debug3() {
		String text1 = "abc";
		String text2 = "def";
		int e = 0;
		debug(text1, text2, e);
	}

	@Override
	public void debug4() {
		String text1 = "bsbininm";
		String text2 = "jmjkbkjkv";
		int e = 1;
		debug(text1, text2, e);
	}

	public void debug5() {
		String text2 = "kaf";
		String text1 = "abefk";
		int e = 2;
		debug(text1, text2, e);
	}

}
